usb: musb: only write CLRDATATOG when appropriate
authorBryan Wu <[email protected]>
Mon, 9 Aug 2010 18:58:24 +0000 (14:58 -0400)
committerRemy Bohmer <[email protected]>
Wed, 13 Oct 2010 10:08:43 +0000 (12:08 +0200)
commit4ee691f6aced74c30bbe15d9e97313df21037ae3
tree7f2fefb3c4f13f8e3115c08262f3c5de9ae7fc8d
parent99e9ed1f49b31cc7c3b8f5d2c322b2eb26dd2a29
usb: musb: only write CLRDATATOG when appropriate

This is a change similar to what is already in the Linux driver.  We
should only program the CLRDATATOG bit when the current mode indicates
that it is needed.

Signed-off-by: Bryan Wu <[email protected]>
Signed-off-by: Cliff Cai <[email protected]>
Signed-off-by: Mike Frysinger <[email protected]>
drivers/usb/musb/musb_hcd.c